docendo discitur

It is learned by teaching

Notes

Also translated "One learns by teaching." Attributed to Seneca the Younger.